﻿@using NaviCar.Helpers;
@model IEnumerable<NaviCar.DB.Veiculo>

@{
         Grid<NaviCar.DB.Veiculo> grid = new Grid<NaviCar.DB.Veiculo>("grdVeic", Model,ViewBag.QtdTotal,1);
         grid.TemPaginacao = false;
         grid.Colunas(grid.CriarColuna("Placa","Placa"), grid.CriarColuna(f=>f.Sistema.NomeSistema,"Sistema"), grid.CriarColuna(f=> Ajax.ActionLink("Editar","Selecionar",new {id=f.CodigoVeiculo},new AjaxOptions{HttpMethod="Post", OnComplete="sels", OnFailure="erroSel"}).ToString(),"Editar"));
        
          @grid.GetHtml()
}